/**
 * 
 */
package las.dao.entity;

import java.util.Date;

/**
 * @author shayne
 * 
 */
public class UserEvent {
	private Integer id;
	private Integer userId;
	private User user;

	private Integer eventId;
	private Event event;

	private String eventInfo;
	private Date recordTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		if(user == null){
			this.userId = null;
		}else{
			this.userId = user.getUserId();
		}
		this.user = user;
	}

	public Integer getEventId() {
		return eventId;
	}

	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		if(event == null){
			this.eventId = null;
		} else{
			this.eventId = event.getEventId();
		}
		
		this.event = event;
	}

	public String getEventInfo() {
		return eventInfo;
	}

	public void setEventInfo(String eventInfo) {
		this.eventInfo = eventInfo;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

}
